#include<iostream>
#include<vector>
using namespace std;
int main()
{
	vector<int> ivec;
	int ival;
	int sum = 0;
	while (cin >> ival)
	{
		ivec.push_back(ival);
	}
	for (int ix = 0;ix < ivec.size();ix++)
	{
		sum += ivec[ix];
	}
	double average = 1.0 * sum / ivec.size();
	cout << "Sum of " << ivec.size()
		<< " elements: " << sum
		<< " . Average: " << average << endl;
	return 0;
}
